package com.zhuxulin.android.test.anim;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.zhuxulin.android.test.R;

public class Anim2 extends Activity implements OnClickListener {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.a_anim_2);
		init();
	}

	private void init() {
		findViewById(R.id.button2).setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		if (v.getId() == R.id.button2) {
			Intent i = new Intent(getApplicationContext(), Anim3.class);
			startActivity(i);
			overridePendingTransition(R.anim.hyperspace_in, R.anim.hyperspace_out);
		}

	}
}